<?php
$this->breadcrumbs = array(
    '网关配置管理' => array('/msgg/config'),
    '配置新建',
);
?>
<div class="row" style="min-height:300px;background-color:#fff;">
    <?php

    $form = $this->beginWidget('bootstrap.widgets.TbActiveForm', array(
        'id' => 'CreateForm',
        'action' => 'create',
        'type' => 'horizontal',
        'enableAjaxValidation' => false,
        'enableClientValidation' => true,
        'clientOptions' => array(
            'validateOnSubmit' => true,
        ),
    ));
    ?>
    <blockquote><b>新增</b></blockquote>
    <div class="col-md-12">
        <?php
        echo $form->textFieldRow($model, 'name');
        echo $form->dropDownListRow($model, 'type', MsggConfig::getOptions('type'));
        echo $form->dropDownListRow($model, 'try', MsggConfig::getOptions('try'));
        echo $form->textFieldRow($model, 'level');
        echo $form->textAreaRow($model, 'strConfig', array('style' => 'width:100%;resize:none;', 'rows' => 8,));
        $this->widget('bootstrap.widgets.TbButton', array(
            'buttonType' => 'submit',
            'type' => 'primary',
            'label' => '保存',
            'htmlOptions' => array('class' => 'submit', 'style' => 'width:120px;margin:15px 400px;'),
        ));
        ?>
    </div>
    <?php
    $this->endWidget();
    ?>
</div>